ifeq ($(TOP_DIR),)
	ifeq ($(DAVINCI_HIAI_DKMS),y) #for DKMS
		drv_devmng_host-y += time/host/dms_time_host.o
		EXTRA_CFLAGS += -I$(HIAI_DKMS_DIR)/dms/time/host
		EXTRA_CFLAGS += -I$(HIAI_DKMS_DIR)/dms/time
		EXTRA_CFLAGS += -DCFG_FEATURE_TIMESYNC
	endif
else #for CMake & ctrl cpu open
	ifneq ($(filter $(PRODUCT), ascend310 ascend310B ascend310Besl ascend310Bemu ascend310p ascend910 ascend910B ascend920esl ascend920emu),)
		ifeq ($(PRODUCT_SIDE), host)
			drv_devmng_host-y += time/host/dms_time_host.o
			EXTRA_CFLAGS += -I$(DRIVER_KERNEL_DIR)/src/dms/time/host
		else
			drv_devmng-y += time/device/dms_time_device.o
			EXTRA_CFLAGS += -I$(DRIVER_KERNEL_DIR)/src/dms/time/device
		endif
		EXTRA_CFLAGS += -I$(DRIVER_KERNEL_DIR)/src/dms/time
		EXTRA_CFLAGS += -DCFG_FEATURE_TIMESYNC
	endif
    ifeq ($(PRODUCT_SIDE), device)
        drv_devmng-y += time/device/dms_device_time_zone.o
        EXTRA_CFLAGS += -I$(DRIVER_KERNEL_DIR)/src/common
    endif
endif
